<? if ($this->typecontroll == 'Question'): ?>
<? if ($this->typepage == 'form'):?>
<? $title = "Take the test"; 
   $Message='<b>Answer a few questions:</b><br/>';
?>
<? else: ?>
<? $title = "Your score"; 
   $Message="<b>Your score</b><br/>";
?>
<? endif; ?>
<? else:?>

<? 
	$view = '0';
	switch ($this->messagedisplay) {
	case 'login':
		$title = "Login"; 
   		$Message = "<center><b>".$this->messagedisplay."</b></center>";
		$view = 'login';
	break;
	case 'protected':
		$title = "You were authorized"; 
   		$Message = "You were authorized in the closed section<br><a href='index.php?views=logout'>Logout</a>.";
	break;
	case 'registerUser':
		$title = "You are registered"; 
 		$Message = "<b>You are registered</b><br/> <a href='index.php?views=login'>Login site</a>.";	
	break;
	case 'noregisterUser':
		$title = "Login is not free"; 
 		$Message = "<b>Login is not free</b><br/><a href='index.php?views=registration'>Sign up with another name</a>.";	
	break;
	case 'Notallfields':
		$title = "Not all fields were filled with"; 
 		$Message ="<b>Not all fields were filled with</b><br/><a href='index.php?views=registration'>to repeat the registration procedure</a>.";	
	break;	
	case 'regist':
		$title = "Form registration"; 
		$view = 'regist';
 	break;	
	case 'nocorectdata':
		$title = "True login or the password are entered not"; 
 		$Message ="True login or the password are entered not";	
	break;	
	}	
?>
<? endif;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><? echo $title; ?></title>
</head>
<body>
<? echo $Message; ?>
<? if ($this->typecontroll == 'Question'): ?>
<? if ($this->typepage == 'form'):?>
<? include_once 'views/form.html';?>
<? else: ?>
<? include_once 'views/result.html';?>
<? endif; ?>
<? else: ?>
<?if ($view != '0'):?>
<? include_once "views/".$view.".html";?>
<? endif; ?>
<? endif; ?>

</body>
</html>